﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using System.Windows.Ink;
using System.IO;
using System.Collections;
using System.Runtime.Serialization.Formatters.Binary;
using System.Runtime.Serialization;

namespace UCUTextRecognizer
{
    [Serializable]
    public class DiagramStroke
    {
        public List<DiagramStylusPoint> lista = new List<DiagramStylusPoint>();
        

        public void fromStroke(Stroke temp)
        {
            IEnumerator <StylusPoint> EmpEnumerator = temp.StylusPoints.GetEnumerator();
            EmpEnumerator.Reset(); //Position at the Beginning
            while (EmpEnumerator.MoveNext()) //Till not finished do print
            {
                StylusPoint sp = (StylusPoint)EmpEnumerator.Current;
                DiagramStylusPoint dsp = new DiagramStylusPoint(sp.X, sp.Y, sp.PressureFactor);
                lista.Add(dsp);
            }
        }

    }
}
